package com.shop.service;

import com.shop.dao.UserDao;
import com.shop.dao.UserDaoImpl;
import com.shop.entity.User;

/**
 * @author ls
 * @Date 创建时间:2022/3/10 15:50
 * 描述:
 */

public class UserServiceImpl implements UserService{
    UserDao dao = new UserDaoImpl();
    @Override
    public User findUserByAccount(String account) {
        return dao.findUserByAccount(account);
    }

    @Override
    public int add(User user) {
        return dao.add(user);
    }
}
